12 步:为了防止用户出错,我们应该出现错误时继续请求输入。

  • 首先,删除handle_user_errors ().
  • 那么,在,在handle_user_errors(). While True拖到您的文档字符串下方
  • 点击运行控制台查看您的 while 循环!准备好进行下一个活动时,单击停止

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)